/*
	This file is part of CLISRServer.
	Foobar is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	
	CLISRServer is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with CLISRServer.  If not, see <http://www.gnu.org/licenses/>.
*/


#include <QApplication>
#include <QDebug>
#include <iostream>
#include "SRServer.h"
#include "SRSettings.h"
#include <string.h>

using namespace std;

int main(int argc,char *argv[])
{
	QApplication app(argc, argv);

	app.setApplicationName("CLISRServer");


	cout << "argv[0]:" << argv[0] << endl;
	cout << "argv[1]:" << argv[1] << endl;

	// specify settings
	SRSettings *settings = new SRSettings();
	settings->setPort(2345);
	settings->setPluginsPath(argv[1]);
	settings->setRemoteLayoutsPath("");

	// start server
	SRServer *test = new SRServer(settings);
	return app.exec();
}
